package com.ss.android.article.browser.view.user;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import com.ss.android.article.browser.database.BrowserHistory;

final class p implements View.OnClickListener {
    private final o a;

    p(o arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg4) {
        if((arg4.getTag() instanceof BrowserHistory)) {
            Object v0 = arg4.getTag();
            Intent v1 = new Intent();
            v1.setAction("com.ss.android.article.browser.search");
            v1.putExtra("bundle_query", ((BrowserHistory)v0).title);
            FragmentActivity v0_1 = this.a.getActivity();
            if(v0_1 != null) {
                ((Activity)v0_1).setResult(-1, v1);
                ((Activity)v0_1).finish();
            }
        }
    }
}

